<?php
    function timer_after(){
        $setTime = 2000;
        $timer = swoole_timer_after(1000, function()use($setTime){
            echo $setTime;
        });
    }

    timer_after();